-
Notifications
You must be signed in to change notification settings - Fork 2k
Replace obsolete ENV VAR VALUE with ENV VAR=VALUE #2254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to fix update.sh & functions.sh
Fixed. This PR now depends on: The failing test is because https://news.ycombinator.com is down. I reported it, hope they'll fix it soon. |
It's up again. All should pass now. |
Why should this one depend on #2258?
|
Because they touch the same line in update.sh. |
That's something should be prevented. I don't want to mix different topic in the same pull request.
|
I agree. So which one of them do you want to accept first? You can either merge the other one and then I'll rebase this one, or I can swap them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove unrelated commit changes that are not relevant to the topic.
Maybe this one as it was sent earlier. |
Done |
Fixes these warnings: - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the Dockerfile ENV
directives from the legacy ENV KEY VALUE
format to the preferred ENV KEY=VALUE
syntax and adjusts supporting scripts to match.
- update.sh, stackbrew.js, genMatrix.js, and functions.sh are modified to parse and emit
ENV KEY=VALUE
entries. - Documentation and templates (docs/BestPractices.md, README.md, Dockerfile-*.template) are updated to reflect the new syntax.
- All versioned Dockerfiles in the
20/
,22/
, and24/
directories are converted to useENV KEY=VALUE
.
Reviewed Changes
Copilot reviewed 27 out of 27 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
update.sh | Adjust sed rules to match and emit ENV KEY=VALUE . |
stackbrew.js | Update regex to extract NODE_VERSION with = . |
genMatrix.js | Update regex to extract full node version with = . |
functions.sh | Use grep /cut -d= for ENV NODE_VERSION= . |
docs/BestPractices.md | Change examples to ENV YARN_VERSION=... . |
README.md | Update example to ENV NPM_CONFIG_LOGLEVEL=info . |
Dockerfile-slim.template | Switch ENV NODE_VERSION and YARN_VERSION to = . |
Dockerfile-debian.template | Switch ENV NODE_VERSION and YARN_VERSION to = . |
Dockerfile-alpine.template | Switch ENV NODE_VERSION and YARN_VERSION to = . |
24/bullseye/Dockerfile | Convert ENV syntax for node and yarn versions. |
24/bullseye-slim/Dockerfile | Convert ENV syntax for node and yarn versions. |
24/bookworm/Dockerfile | Convert ENV syntax for node and yarn versions. |
24/bookworm-slim/Dockerfile | Convert ENV syntax for node and yarn versions. |
24/alpine3.22/Dockerfile | Convert ENV syntax for node and yarn versions. |
24/alpine3.21/Dockerfile | Convert ENV syntax for node and yarn versions. |
22/bullseye/Dockerfile | Convert ENV syntax for node and yarn versions. |
22/bullseye-slim/Dockerfile | Convert ENV syntax for node and yarn versions. |
22/bookworm/Dockerfile | Convert ENV syntax for node and yarn versions. |
22/bookworm-slim/Dockerfile | Convert ENV syntax for node and yarn versions. |
22/alpine3.22/Dockerfile | Convert ENV syntax for node and yarn versions. |
22/alpine3.21/Dockerfile | Convert ENV syntax for node and yarn versions. |
20/bullseye/Dockerfile | Convert ENV syntax for node and yarn versions. |
20/bullseye-slim/Dockerfile | Convert ENV syntax for node and yarn versions. |
20/bookworm/Dockerfile | Convert ENV syntax for node and yarn versions. |
20/bookworm-slim/Dockerfile | Convert ENV syntax for node and yarn versions. |
20/alpine3.22/Dockerfile | Convert ENV syntax for node and yarn versions. |
20/alpine3.21/Dockerfile | Convert ENV syntax for node and yarn versions. |
Description
Fixes these warnings:
Testing Details
Build passed.
Types of changes
Checklist